package com.CMS.client.ui.record;

import java.util.Date;

import com.smartgwt.client.widgets.grid.ListGridRecord;

public class BaseRecord extends ListGridRecord{
	
	public BaseRecord(){}
	
	public BaseRecord(String icon,long id, Date addDate, Date modDate, boolean flagActivo){
		setIcon(icon);
		setId(id);
		setAddDate(addDate);
		setModDate(modDate);
		setFlagActivo(flagActivo);
	}
		
	public void setIcon(String icon){
		setAttribute("icon", icon);
	}
	
	public void setId(long id){
		setAttribute("idEntidad", id);
	}
	
	public void setModDate(Date value){
		setAttribute("modDate", value);
	}
	
	public void setAddDate(Date value){
		setAttribute("addDate", value);
	}
	
	public void setFlagActivo(boolean value){
		setAttribute("flagActivo", value);
	}
	
	public String getIcon(){
		return getAttributeAsString("icon");
	}
	
	public Date getAddDate(){
		return getAttributeAsDate("addDate");
	}
	
	public Date getModDate(){
		return getAttributeAsDate("modDate");
	}
	
	public boolean getFlagActivo(){
		return getAttributeAsBoolean("flagActivo");
	}
	
	public long getId(){
		return getAttributeAsLong("idEntidad");
	}

}
